package cn.itcast.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor


public class Account implements Serializable {
    @NotNull(message = "please input id", groups = {GroupB.class})
    private Integer id;
    @NotBlank(message = "please input name", groups = {GroupA.class, GroupB.class})
    private String name;
    @NotNull(message = "please input money", groups = {GroupA.class, GroupB.class})
    private Double money;
}